<div class="clearfix" style="width:100%;height:580px;background: url(${(matchProject.logoPath)!}) center center no-repeat;">
	
</div>
<div class="ssbg" >
	<div class="container1100 clearfix" style="padding-top: 114px;padding-bottom: 78px;">
		<#if zlxzList?size==0>
			<p style="padding-bottom: 40px;font-size: 18px;text-align: center;">暂无可下载赛事资料......</p>
		<#else>
		<#list zlxzList as zl>
			<section>
		    	<div class="item clearfix">
			    	<div style="margin-left: 100px;margin-top: 30px;">
			    		<span style="font-size: 16px;font-weight: bold;">${(zl.name)!}</span>
			    		<span style="float: right;margin-right: 20px;">2017-05-05</span>
			    	</div>
			    	<div style="margin-left: 120px;line-height: 30px;color:gray;">
			    		${(zl.resContent)!}
			    	</div>
			    	<#if zl.resAttchItems??>
			    	<div class="loadRs" style="margin-left: 100px;margin-bottom:20px;">
			    		<#list zl.resAttchItems as ra>
			    			<p style="color:green;line-height: 30px;">附件${ra_index+1}：<a href="${(ra.attchPath)!}" class="zxlz${(zl.id)!}" style="color:green;">${(ra.name)!}</a></p>
			    		</#list>
			    		<button style="border: 1px solid gray;border-radius: 3px;padding: 5px 5px;cursor: pointer;" onclick="downloadResFile(${(zl.id)!})">全部下载</button>	    		
			    	</div>
			    	</#if>
		    	</div>
		    </section>
		</#list>
		</#if>
	</div>
</div>
<script>
function downloadResFile(resId){
	if($('#downloadForm')) $('#downloadForm').remove();
	var downloadForm  = $("<form id=\"downloadForm\">");//定义一个form表单
	downloadForm.attr("style","display:none");
	downloadForm.attr("target","");
	downloadForm.attr("method","post");
	downloadForm.attr("action",'match.action?downLoadResFile&resId='+resId);
	var input1=$("<input>");
	input1.attr("type","hidden");
	input1.attr("name","downLoadCode");
	input1.attr("value",(new Date()).getMilliseconds()); 
	$("body").append(downloadForm);//将表单放置在web中
	downloadForm.append(input1);
	downloadForm.submit();//表单提交
	return false;
}

function loadFiles(aTag) {
	
	$("a."+aTag).each(function(){
        var v = $(this).attr("href");
        console.log(v);
        downloadFile(v);
//         var did = v.substr(v.lastIndexOf("=")+1,v.length-v.lastIndexOf("="));    
    }); 
}

</script>
